package com.financing.wap.service;

import java.sql.SQLException;
import java.util.List;

import com.financing.wap.dto.ClientUserBaseDTO;
import com.financing.wap.dto.CorpClientUserBaseDTO;
import com.financing.wap.vo.QueryClientUserVo;

public interface IClientService {
	
	/**
	 * 客户列表
	 * @param queryVo
	 * @return
	 */
	public List<ClientUserBaseDTO> getClientUserList(QueryClientUserVo queryVo);
	
	
	/**
	 * 记录数
	 * @param queryVo
	 * @return
	 */
	public  int getClientUserListCount(QueryClientUserVo queryVo);
	
	/**
	 * 机构查看客户列表
	 * @param queryVo
	 * @return
	 */
	public List<CorpClientUserBaseDTO> getCorpClientUserList(QueryClientUserVo queryVo);
	
	
	/**
	 * 记录数
	 * @param queryVo
	 * @return
	 */
	public  int getCorpClientUserListCount(QueryClientUserVo queryVo);
	
	/**
	 * 获取客户基础信息详情
	 * @param queryVo
	 * @return
	 */
	public ClientUserBaseDTO searchClientUserBaseById(Integer id);
	
	/**
	 * 新增客户基础信息
	 * @param dto
	 * @return id
	 */
	public int insertClientUserBase(ClientUserBaseDTO dto);

	/**
	 * 更新客户基础信息
	 * @param dto
	 * @return id
	 */
	public int updateClientUserBase(ClientUserBaseDTO dto);
	
	/**
	 * 
	 * @Title: deleteClient
	 * @Description: 删除客户信息 
	 * @param @param dto
	 * @param @return   
	 * @return int   
	 * @throws
	 */
	public int deleteClient(ClientUserBaseDTO dto) throws SQLException;
	
	
	/**添加客户信息及客户风险评估问卷答案
	 * @param dto
	 * @param qajson
	 * @return
	 */
	public int addClientAndQuestion(ClientUserBaseDTO dto,String qajson)throws Exception;

}
